var vm = new Vue({
    el: '#app',
    data: {
        list1: ["综合排序", "距离最近", "销量最高", "筛选"],
        list: ["年货节热卖", "津贴联盟", "满减优惠", "品质联盟"],
        currentIndex1: 0,
        currentIndex2: 0, //保存点击的按钮下标
        list2: [
            { pic: '', name: '首页' },
            { pic: '', name: '订单' },
            { pic: '', name: '我的' },
        ],

    },
    methods: {
        handleClick1(index) {
            this.currentIndex1 = index;//保存点击的按钮下标
        },
        handleClick2(index) {
            this.currentIndex2 = index;//保存点击的按钮下标
        }
    }
})